import request from '@/utils/request'

export function send(data) {
  console.log('发送命令' + data)
  return request({
    url: '/vue-admin-template/user/cmdline',
    method: 'post',
    data: data
  })
}

export function updateLog(logCache, newLog) {
  console.log('接收到')
  console.log(newLog)
  logCache.push(newLog)
  return logCache
}
